﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.hive;

namespace SharpSqlAnalyzer.stmt.hive
{
	// Token: 0x020001BB RID: 443
	public class THiveDropRole : TCustomSqlStatement
	{
		// Token: 0x06000EC4 RID: 3780 RVA: 0x0030A7A8 File Offset: 0x003089A8
		public THiveDropRole(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.ssthiveDropRole;
		}

		// Token: 0x170002B1 RID: 689
		// (get) Token: 0x06000EC5 RID: 3781 RVA: 0x0030A7BC File Offset: 0x003089BC
		// (set) Token: 0x06000EC6 RID: 3782 RVA: 0x0030A7C4 File Offset: 0x003089C4
		public virtual TObjectName RoleName
		{
			get
			{
				return this.roleName;
			}
			set
			{
				this.roleName = value;
			}
		}

		// Token: 0x06000EC7 RID: 3783 RVA: 0x0030A7CD File Offset: 0x003089CD
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			this.roleName = ((THiveDropRoleSqlNode)this.rootNode).RoleName;
			return 0;
		}

		// Token: 0x06000EC8 RID: 3784 RVA: 0x0030A7F8 File Offset: 0x003089F8
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000EC9 RID: 3785 RVA: 0x0030A808 File Offset: 0x00308A08
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001343 RID: 4931
		private TObjectName roleName;
	}
}
